package com.example.userapi.feign;
import org.example.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author
 * @date 2021-4-16 11:09
 */
@FeignClient(value = "spring-cloud-user")
public interface IUserFeign {
    /**
     * 校验token
     * @param token
     * @return
     */
    @GetMapping(value = "/validToken",consumes = MediaType.APPLICATION_JSON_VALUE)
    R<String> validToken(@RequestParam("token")String token);
}
